import request from '@/plugin/axios'
import util from '@/libs/util.js'

export default {
    //获取验证码
	getEmailCode (data) {
		return request({
			url: 'common/getEmailValidCode',
			headers: {},
			method: 'post',
			data,
		});
	},

    // 注册

    register (data) {
		return request({
			url: 'mchInfo/register',
			headers: {},
			method: 'post',
			data,
		});
	},

	// 校验邮箱
	varifyEmail(data) {
		return request({
			url: 'common/checkRegisterEmailValid',
			headers: {},
			method: 'post',
			data,
		});
	},
	
    // 查询 用户
    getMchinfo (data) {
		return request({
			url: 'mchInfo/get',
			headers: {},
			method: 'post',
			data,
		});
	},

    // 修改 用户消息？
    setMchinfo (data) {
		return request({
			url: 'mchInfo/edit',
			headers: {},
			method: 'post',
			data,
		});
	},

	// 获取PDF
	getProtocolInfo(data){
		return request({
			url: 'protocolInfo/get',
			headers: {},
			method: 'post',
			data,
		});
	},

	retrievePassword(data){
		return request({
			url: 'mchSysAdmin/forgotPassword',
			headers: {},
			method: 'post',
			data,
		});
	},
};